import base_crawler
import matplotlib.pyplot as plt
class User_Info_Crawler(base_crawler.BaseCrawler):
    pass

if __name__ == '__main__':
    x_plots = [1,2,3,4,5,6,7,8,9,10]
    y_plots= [0.8275279742187859,0.8324187950278257,0.8326238536675532,0.8319263754768237,0.8313362640473169,0.8315889709365148,0.8320374393672708,0.8313516993546864,0.8314333852127455,0.8316371971662372]
    # chart_name = 'apfd-training_times'
    chart_name = 'apfd-coverage'
    # 设置该图长宽比2：1
    plt.figure(figsize=(10, 5))
    plt.plot(x_plots, y_plots, marker='o', mec='r', mfc='w',label=u'apfd-coverage')
    plt.legend()  # 让图例生效
    plt.margins(0)
    plt.subplots_adjust(bottom=0.15)
    plt.xlabel(u"training_times") #X轴标签
    plt.ylabel("apfd") #Y轴标签
    plt.title(chart_name) #标题
    plt.savefig('./'+chart_name+'.png')